package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.Srecharge;
import cn.stylefeng.guns.modular.system.model.params.SrechargeParam;
import cn.stylefeng.guns.modular.system.model.result.SrechargeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 *  代充值
 * </p>
 *
 * @author yl
 * @since 2019-07-09
 */
@Repository
public interface SrechargeMapper extends BaseMapper<Srecharge> {

    /**
     * 获取列表
     *
     * @author yl
     * @Date 2019-07-09
     */
    List<SrechargeResult> customList(@Param("paramCondition") SrechargeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author yl
     * @Date 2019-07-09
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") SrechargeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author yl
     * @Date 2019-07-09
     */
    Page<SrechargeResult> customPageList(@Param("page") Page page, @Param("paramCondition") SrechargeParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author yl
     * @Date 2019-07-09
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") SrechargeParam paramCondition);




    /**
     * 查询充值表和，充值分类表
     */
    List<Srecharge> QuerySrecharge();


    /**
     * 查询详情
     */
    List<SrechargeResult> QuerySrechargeId(@Param("id") String id);


    /**
     * 根据 id 修改数据信息
     */
    int UpdateSrecharge(@Param("number") BigDecimal number , @Param("type") String type , @Param("remarks") String remarks , @Param("id") Integer id );









}
